projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
066efb8
)
Fix bug with make-directory on MS-Windows root
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 19 Sep 2017 08:47:39 +0000
(
01:47
-0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 19 Sep 2017 08:48:04 +0000
(
01:48
-0700)
* lisp/files.el (files--ensure-directory): Treat any error, not
just file-already-exists, as an opportunity to check whether DIR
is already a directory (Bug#28508).
lisp/files.el
patch
|
blob
|
history
diff --git
a/lisp/files.el
b/lisp/files.el
index ff0ab7063388b786cfdd89bf023580314fd3d02a..0c30d40c13b329fec457752d7fce6734798c466d 100644
(file)
--- a/
lisp/files.el
+++ b/
lisp/files.el
@@
-5337,7
+5337,7
@@
instance of such commands."
"Make directory DIR if it is not already a directory. Return nil."
(condition-case err
(make-directory-internal dir)
- (
file-already-exists
+ (
error
(unless (file-directory-p dir)
(signal (car err) (cdr err))))))